<?php
$ROOT_DIR_PATH = '../';
require_once($ROOT_DIR_PATH . 'includes/includes.php');
$loginUrl = $ADMIN_BASE_HREF . "login.php";
if (!$GENOBJ->isLoggedIn()) {
    $GENOBJ->redirect($loginUrl);
}
$ADMIN_PAGE_TITLE = 'Dashboard Page';
?>
<?php include('templates/header.php'); ?>
<body>
    <div id="ncleangrey-container">
        <?php include('templates/navigation.php'); ?>
        <div class="breadcrumbs">
            <div id="nav-icons_all">
                <ul id="nav-icons">
                    <li class="logout-icon"><a  title="Logout"  href="logout.php">Logout</a></li>
                </ul>
            </div>
        </div>
        <div class="hstippled">&nbsp;</div>
        <div id="MainContent">
            <div class="clearb">&nbsp;</div>
            <div class="navt_menu">
                <div style="clear: both;"></div>
            </div>
            <div class="sections">
                <div class="MainMenu">
					
					<?php if($GENOBJ->isAdminLogin()): ?>
                    <div class="itemmenucontainer-menubar">
                        <div class="itemoverflow">
                            <a class="title-itemlink" href="userlisting.php">Dealers</a><br />
                            <p class="itemicon">
                                <a href="userlisting.php">
                                    <img src="images/icons/topfiles/users.gif"  height="60px" width="60px" class="itemicon" alt="user" title="user" />
                                </a>
                            </p>
                            <p class="itemtext"><a class="itemlink" href="userlisting.php">Dealer</a><br />
                                This is where we add and edit dealers.<br />
								Subitems: <a class="itemsublink" href="user.php">Add Dealers</a>,
                                <a class="itemsublink" href="userlisting.php">Dealers Listing</a>
                            </p>
                        </div>
                    </div>
					<?php endif;?>
					
					
					<div class="itemmenucontainer-menubar">
						<div class="itemoverflow">
							<a class="title-itemlink" href="dealersgroup.php">Dealers Group</a><br />
							<p class="itemicon">
								<a href="dealersgrouplisting.php">
									<img src="images/icons/topfiles/dealersgroup.png"  height="60px" width="60px" class="itemicon" alt="Dealers Group" title="Dealers Group" />
								</a>
							</p>
							<p class="itemtext"><a class="itemlink" href="dealersgrouplisting.php">Dealers Group</a><br />
								This is where we add and edit Dealers Group.<br />
								Subitems: <a class="itemsublink" href="dealersgroup.php">Add Dealers Group</a>,
								<a class="itemsublink" href="dealersgrouplisting.php">Dealers Group Listing</a>
							</p>
						</div>
					</div>
					
					
					
					
					
					
					<div class="itemmenucontainer-menubar">
                        <div class="itemoverflow">
                            <a class="title-itemlink" href="category.php">Category</a><br />
                            <p class="itemicon">
                                <a href="categorylisting.php">
                                    <img src="images/icons/topfiles/categories.png"  height="60px" width="60px" class="itemicon" alt="category" title="category" />
                                </a>
                            </p>
                            <p class="itemtext"><a class="itemlink" href="categorylisting.php">Category</a><br />
                                This is where we add and edit category.<br />
								Subitems: <a class="itemsublink" href="category.php">Add Category</a>,
                                <a class="itemsublink" href="categorylisting.php">Category Listing</a>
                            </p>
                        </div>
                    </div>
					<div class="itemmenucontainer-menubar">						<div class="itemoverflow">							<a class="title-itemlink" href="brand.php">Brand</a><br />							<p class="itemicon">								<a href="brandlisting.php">									<img src="images/icons/topfiles/brand.png"  height="60px" width="60px" class="itemicon" alt="brand" title="brand" />								</a>							</p>							<p class="itemtext"><a class="itemlink" href="brandlisting.php">Brand</a><br />								This is where we add and edit brand.<br />								Subitems: <a class="itemsublink" href="brand.php">Add Brand</a>,								<a class="itemsublink" href="brandlisting.php">Brand Listing</a>							</p>						</div>					</div>
					
					<div class="itemmenucontainer-menubar">
						<div class="itemoverflow">
							<a class="title-itemlink" href="product.php">Product</a><br />
							<p class="itemicon">
								<a href="productlisting.php">
									<img src="images/icons/topfiles/product.png"  height="60px" width="60px" class="itemicon" alt="product" title="product" />
								</a>
							</p>
							<p class="itemtext"><a class="itemlink" href="productlisting.php">Product</a><br />
								This is where we add and edit product.<br />
								Subitems: <a class="itemsublink" href="product.php">Add Product</a>,
								<a class="itemsublink" href="productlisting.php">Product Listing</a>
							</p>
						</div>
					</div>
					
					<div class="itemmenucontainer-menubar">
                        <div class="itemoverflow">
                            <a class="title-itemlink" href="bannerlisting.php">Banner</a><br />
                            <p class="itemicon">
                                <a href="bannerlisting.php">
                                    <img src="images/icons/topfiles/gallery.png" height="60px" width="60px" class="itemicon" alt="banner" title="banner" />
                                </a>
                            </p>
                            <p class="itemtext">
                                <a class="itemlink" href="bannerlisting.php">Banner</a><br />
								This is where you can add Banner.<br />
								Subitems: <a class="itemsublink" href="banner.php">Add Banner</a>,
                                <a class="itemsublink" href="bannerlisting.php">Banner Listing</a>
                            </p>
                        </div>
                    </div>
					
					<div class="itemmenucontainer-menubar">
                        <div class="itemoverflow">
                            <a class="title-itemlink" href="contentlisting.php">Content</a><br />
                            <p class="itemicon">
                                <a href="contentlisting.php">
                                    <img src="images/icons/topfiles/content.gif" height="60px" width="60px" class="itemicon" alt="content" title="content" />
                                </a>
                            </p>
                            <p class="itemtext">
                                <a class="itemlink" href="contentlisting.php">Content</a><br />
								This is where you can add content.<br />
								Subitems: <a class="itemsublink" href="content.php">Add Content</a>,
                                <a class="itemsublink" href="contentlisting.php">Content Listing</a>
                            </p>
                        </div>
                    </div>															<div class="itemmenucontainer-menubar">						<div class="itemoverflow">							<a class="title-itemlink" href="orderlisting.php">Order Management</a><br />							<p class="itemicon">								<a href="orderlisting.php">									<img src="images/icons/topfiles/order.png"  height="60px" width="60px" class="itemicon" alt="order management" title="order" />								</a>							</p>							<p class="itemtext"><a class="itemlink" href="orderlisting.php">Order Management</a><br />								This is where we view orders by dealers.<br />								Subitems: <a class="itemsublink" href="orderlisting.php">Order Management</a>							</p>						</div>					</div>
					
					<div class="itemmenucontainer-menubar">
                        <div class="itemoverflow">
                            <a class="title-itemlink" href="emailtemplatelisting.php">Email Template</a><br />
                            <p class="itemicon">
                                <a href="emailtemplatelisting.php">
                                    <img src="images/icons/topfiles/email.png"  height="60px" width="60px" class="itemicon" alt="Email Template" title="Email Template" />
                                </a>
                            </p>
                            <p class="itemtext"><a class="itemlink" href="emailtemplatelisting.php">Email Template</a><br />
                                This is where we add and edit Email Template.<br />
								Subitems: <a class="itemsublink" href="emailtemplate.php">Add Email Template</a>,
                                <a class="itemsublink" href="emailtemplatelisting.php">Email Template Listing</a>                            </p>
                        </div>
                    </div>
					
					
					<div class="itemmenucontainer-menubar">
                        <div class="itemoverflow">
                            <a class="title-itemlink" href="newsletter.php">News-Letter</a><br />
                            <p class="itemicon">
                                <a href="newsletter.php">
                                    <img src="images/icons/topfiles/newsletter.png"  height="60px" width="60px" class="itemicon" alt="newsletter" title="newsletter" />
                                </a>
                            </p>
                            <p class="itemtext"><a class="itemlink" href="newsletter.php">News-Letter</a><br />
                                This is where we can send news letter to the dealer.<br />
								Subitems: <a class="itemsublink" href="newsletter.php">Send News-Letter</a>
                            </p>
                        </div>
                    </div>
					
					
					
					<?php if($GENOBJ->isAdminLogin()): ?>
                    <div class="itemmenucontainer-menubar">
                        <div class="itemoverflow">
                            <a class="title-itemlink" href="preference.php">Site Preferences</a><br />
                            <p class="itemicon">
                                <a href="preference.php">
                                    <img src="images/icons/topfiles/siteadmin.gif" height="60px" width="60px" class="itemicon" alt="mypreferences" title="mypreferences" />
                                </a>
                            </p>
                            <p class="itemtext">
                                <a class="itemlink" href="preference.php">Site Preferences</a><br />
								This is where you can customize site admin settings and preference.<br />
								Subitems: <a class="itemsublink" href="preference.php">Preferences</a>, <a class="itemsublink" href="changeemail.php">Change Email Address</a>,
                                <a class="itemsublink" href="changepassword.php">Change Password</a>
                            </p>
                        </div>
                    </div>
					<?php endif;?>
					
					
					

					
					
                </div>
            </div>
            <div class="clearb"></div>
        </div>
    </div>
    <?php include('templates/footer.php'); ?>
</body>
</html>